import request from '@/utils/request'

export default{
    //根据课程id分页查询
     getCommentPage(page,limit,courseId) {
        return request({
            url: `/eduservice/comment/pageCommentCondition/${page}/${limit}`,
            method: 'get',
            params:{courseId}
        })
     },

     //添加评论
     addComment(comment){
        return request({
            url: `/eduservice/comment/addComment`,
            method: 'post',
            data:comment
        })
     }
}    